package se.webbzon.boltzmann.game.sequence.condition;

import se.webbzon.boltzmann.game.sequence.Sequence;
import se.webbzon.boltzmann.game.sequence.Sequences;

public class IsAssigned extends ConditionSequenceNode {

	/*============================================================
	Constructors
	============================================================*/

	public IsAssigned(Sequence sequence, String lh) {
		super(sequence,lh,null);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public boolean isTrue() {
		return Sequences.isVariable(getSequence(), getLeftHandArgument());
	}
	
}
